package com.itqf.controller;

import com.itqf.service.SysUsersService;
import com.itqf.utils.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 徐老板
 * @date 2020/2/4   18:15
 */
@RestController
public class EchartsController {
    @Resource
    private SysUsersService sysUsersService;

    @RequestMapping("/sys/barecharts")
    private R getDeptName(){
        return sysUsersService.findBarData();
    }


    @RequestMapping("/sys/pieecharts")
    private R getPieList(){
        return sysUsersService.findPieData();
    }

}
